// P1591 write by cn_ryh